# Makes the executable for the replay system named 'Replay'
CXX=g++
CCFLAG=-g -Wall -ansi -pedantic
FILE=SysCall.o Process.o Replay.o
all: $(FILE) 
	$(CXX) $(CCFLAG) $(FILE) -lpthread -lrt -o Replay
SysCall.o: SysCall.cpp SysCall.hpp
	$(CXX) $(CCFLAG) SysCall.cpp -c
Process.o: Process.cpp Process.hpp
	$(CXX) $(CCFLAG) Process.cpp -c
Replay.o: Replay.cpp
	$(CXX) $(CCFLAG) Replay.cpp -c
clean:# cleans the directory
	rm -f Replay
	rm -f *.o
	rm -f *~
	rm -f core
tar:
	tar -cvf replay_system.tar --exclude .svn Makefile README Replay.cpp Process.cpp SysCall.cpp Process.hpp SysCall.hpp demo demo.rec demo.des test test.rec
